<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<ui:composition template="../templates/layout.xhtml">
	<ui:define name="content">
		<h:form prependId="false" id="growlForm">
			<p:growl id="growl" showDetail="false" />
		</h:form>
		<h:form prependId="false" id="dataForm">
			<p:panel id="data" toggleable="true" toggleSpeed="250">
				<f:facet name="header">
					<h:outputText value="#{pruebaBean.name}" />
				</f:facet>
				<h:outputFormat id="noRecordsFound"
					value="#{messages.label_no_records_found}"
					rendered="#{!pruebaBean.dataVisible}">
					<f:param value="TipoPersonas" />
				</h:outputFormat>

				<!--Control de primeface datatable-->
				<p:dataTable id="list" value="#{pruebaBean.allTipoPersonas}"
					var="tipoPersona" rendered="#{pruebaBean.dataVisible}"
					resizableColumns="false" paginator="true"
					paginatorTemplate=" {CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
					rowsPerPageTemplate="5,10,25,50" rows="10">
					<p:columns value="#{pruebaBean.columns}" var="column"
						columnIndexVar="colIndex">
						<f:facet name="header">
							<h:outputText value="#{applicationBean.getColumnName(column)}" />
						</f:facet>
						<h:outputText value="#{tipoPersona[column]}" />

					</p:columns>
					<!--
          <p:column styleClass="action-column">
            <f:facet name="header">
              <h:outputText value="Actions" />
            </f:facet>
            <p:commandButton id="viewButton" icon="ui-icon-zoomin" update=":viewForm:viewPanelGrid" oncomplete="viewDialog.show()" title="#{messages.label_view}">
              <f:setPropertyActionListener value="#{tipoPersona}" target="#{pruebaBean.tipoPersona}" />
            </p:commandButton>
            <p:tooltip for="viewButton" value="#{messages.label_view}" showEffect="fade" hideEffect="fade" />
            <p:commandButton id="editButton" icon="ui-icon-pencil" update=":editForm:editPanelGrid" action="#{pruebaBean.onEdit}" oncomplete="editDialog.show()" title="#{messages.label_edit}">
              <f:setPropertyActionListener value="#{tipoPersona}" target="#{pruebaBean.tipoPersona}" />
            </p:commandButton>
            <p:tooltip for="editButton" value="#{messages.label_edit}" showEffect="fade" hideEffect="fade" />
            <p:commandButton id="deleteButton" icon="ui-icon-trash" oncomplete="deleteDialog.show()" title="#{messages.label_delete}">
              <f:setPropertyActionListener value="#{tipoPersona}" target="#{pruebaBean.tipoPersona}" />
            </p:commandButton>
            <p:tooltip for="deleteButton" value="#{messages.label_delete}" showEffect="fade" hideEffect="fade" />
          </p:column>
            -->
				</p:dataTable>
			</p:panel>
			<p:panelGrid columns="2">
				<f:facet name="header">
        			Basic PanelGrid
    				</f:facet>
				<h:outputLabel for="firstname" value="Firstname: *" />
				<p:inputText id="firstname" value="" label="Firstname" />
				<h:outputLabel for="surname" value="Surname: *" />
				<p:inputText id="surname" value="" required="true" label="Surname" />
				<f:facet name="footer">
					<p:commandButton type="button" value="Save" icon="ui-icon-check"
						style="margin:0" />
				</f:facet>
			</p:panelGrid>
		</h:form>
		<!--Demo de caja de texto-->
		<p:inputText id="input" />
		


		

	</ui:define>
</ui:composition>
</html>